// SPDX-FileCopyrightText: Copyright 2025-2025 深圳市同心圆网络有限公司
// SPDX-License-Identifier: GPL-3.0-only

package manifest_impl

type ImageRootfs struct {
	DiffIds []string `json:"diff_ids,omitempty"`
	Type    string   `json:"type"`
}

type ImageHistory struct {
	Created    string `json:"created"`
	Author     string `json:"author"`
	CreatedBy  string `json:"created_by"`
	Comment    string `json:"Comment"`
	EmptyLayer bool   `json:"empty_layer"`
}

type ImageLayer struct {
	MediaType string `json:"mediaType"`
	Size      int64  `json:"size"`
	Digest    string `json:"digest"`
}

type ManifestConfig struct {
	MediaType string `json:"mediaType"`
	Size      int64  `json:"size"`
	Digest    string `json:"digest"`
}

type Platform struct {
	Architecture string   `json:"architecture"`
	Os           string   `json:"os"`
	Variant      string   `json:"variant"`
	Features     []string `json:"features,omitempty"`
}

type ManifestListItem struct {
	MediaType string   `json:"mediaType"`
	Size      int64    `json:"size"`
	Digest    string   `json:"digest"`
	Platform  Platform `json:"platform"`
}

type CollectBlobIdResult struct {
	BlobIdList []string
}
